import request from '@/utils/request'

// 查询评论列表
export function listEvaluate(query) {
  return request({
    url: '/system/evaluate/list',
    method: 'get',
    params: query
  })
}

// 删除评论
export function delEvaluate(evaluateId) {
  return request({
    url: '/system/evaluate/' + evaluateId,
    method: 'delete'
  })
}

//审批评论
export function approveEvaluate(data) {
  return request({
    url: '/system/evaluate/approve',
    method: 'put',
    data: data
  })
}
